<style>
    body{
        background-color: white;
    }
    table tr > th, table tr > td {
        text-align: center;
        vertical-align: middle !important;
    }
    table tr > td:nth-child(1){
        background: #d9edf7;
    }
    .leftDiv{
        width: 48%;
        float: left;
    }
    .rightDiv{
        width: 48%;
        float: right;
    }
</style>
{% if showConfirm %}
<form id="ff" style="padding: 20px;" method="post">
    {% if startUse == false %}
        <div style="margin-bottom:10px">
            <div class="leftDiv">
                <select  class="easyui-combobox" name="sDriverName" label="司机:" data-options="editable:true,labelPosition:'top'" style="width:100%" >
                    {% for id,text in staffArr  %}
                        <option value="{{ text }}" {% if text == data['sDriverName'] %} selected {% endif %}>{{ text }}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="rightDiv">
                <select  class="easyui-combobox" name="iCarId" label="车辆:" data-options="editable:false,labelPosition:'top'" style="width:100%" >
                    {% for id,text in cars  %}
                        <option value="{{ id }}" {% if data['iCarId'] == id %} selected {% endif %}>{{ text }}</option>
                    {% endfor %}
                </select>
            </div>
        </div>
    {% endif %}
    <div style="margin-bottom:10px">
        <input name="iUCId" type="hidden" value="{{ iUCId }}">
        <input id="tTime" class="easyui-datetimebox" label="时间:" name="time"  style="width:100%" data-options="labelPosition:'top'">
    </div>
    <div style="margin-bottom:10px">
        <input id="mDesc" class="easyui-textbox" label="备注:" name="mDesc" prompt="备注" style="width:100%" data-options="labelPosition:'top',multiline:true">
    </div>
    <div style="margin-bottom:10px">
        {% if startUse == false %}
            <a id="useCar" class="easyui-linkbutton" data-options="iconCls:'btn-detail'" style="padding:5px 0px;width:100px;float: right;margin-right: 15px;">
                <span style="font-size:14px;">取车</span>
            </a>
        {% endif %}
        <a id="returnCar" class="easyui-linkbutton" data-options="iconCls:'btn-save'" style="padding:5px 0px;width:100px;float: right;margin-right: 5px;">
            <span style="font-size:14px;">还车</span>
        </a>

    </div>
</form>
        <div style="width: 100%;height: 100%;overflow:auto;-webkit-overflow-scrolling:touch;padding-top: 15px;">
    {% else %}
        <div style="width: 100%;height: 100%;overflow:auto;-webkit-overflow-scrolling:touch;">
{% endif %}
    <table class="table">
        <tbody>
            <tr>
                <td colspan="2" style="background: #2baab1;">详情</td>
            </tr>
            <tr>
                <td style="width: 75px;">申请部门</td>
                <td>{{ data['sDpeName'] }}</td>
            </tr>
            <tr>
                <td>申请人</td>
                <td>{{ data['sApplyName'] }}</td>
            </tr>
            <tr>
                <td>开始时间</td>
                <td>{{ data['tStartTime'] }}</td>
            </tr>
            <tr>
                <td>结束时间</td>
                <td>{{ data['tEndTime'] }}</td>
            </tr>
            {% if data['tRealStart'] is defined %}
                <tr>
                    <td>实际开始</td>
                    <td>{{ data['tRealStart'] }}</td>
                </tr>
                <tr>
                    <td>实际结束</td>
                    <td>{{ data['tRealEnd'] }}</td>
                </tr>
            {% endif %}
            {% if data['iCarId'] is defined %}
                    <tr>
                        <td>司机</td>
                        <td>{{ data['sDriverName'] }}</td>
                    </tr>
                    <tr>
                        <td>车辆</td>
                        <td>{{ data['sCarDesc'] }}</td>
                    </tr>
                {% else %}
                    <tr>
                        <td>车主</td>
                        <td>{{ data['sCarOwner'] }}</td>
                    </tr>
                    <tr>
                        <td>车牌</td>
                        <td>{{ data['sCarPlate'] }}</td>
                    </tr>
                    <tr>
                        <td>车型</td>
                        <td>{{ data['sCarType'] }}</td>
                    </tr>
            {% endif %}
            <tr>
                <td>出行人员</td>
                <td>{{ data['sTravellers'] }}</td>
            </tr>
            <tr>
                <td>申请事由</td>
                <td>{{ data['mReason'] }}</td>
            </tr>
            <tr>
                <td>目的地</td>
                <td>{{ data['mDestination'] }}</td>
            </tr>
        </tbody>
    </table>
</div>



